package com.lxj.mapper;

import com.lxj.domain.BusCar;
import com.lxj.dto.BusCarDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lxj
 * @date 2021/6/16 15:43
 */
public interface BusCarMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BusCar record);

    int insertSelective(BusCar record);

    BusCar selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BusCar record);

    int updateByPrimaryKey(BusCar record);

    /**
     * 分页查询
     * @param dto
     * @return
     */
    List<BusCar> selectAll(@Param("query") BusCarDto dto);

    /**
     * 批量删除
     * @param ids
     */
    int batchDelete(@Param("ids") Integer[] ids);

    /**
     * 根据车牌号查询
     * @param num
     * @return
     */
    BusCar selectByNum(String num);
}